package appconfig

import "github.com/spf13/viper"

type Appconf struct {
	Mysql
	Redis
}

type Mysql struct {
	Host     string
	Port     int
	User     string
	Password string
}

type Redis struct {
	Host     string
	Port     int
	Password string
}

func Init() {
	var Appconfig Appconf
	viper.SetConfigFile(Appconfig)
	viper.ReadInConfig()
	viper.Unmarshal(Appconfig)
}
